home *** CD-ROM | disk | FTP | other *** search
/ Shareware Super Platinum 8 / Shareware Super Platinum 8.iso / mac / PROGTOOL / FLI106C.ZIP;1 / BLISBW.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1992-03-12  |  729 b   |  44 lines

  1. //
  2. // The Fusion Library Interface for DOS
  3. // Version 1.06c
  4. // Copyright (C) 1990, 1991, 1992
  5. // Software Dimensions
  6. //
  7. // BlazeClass
  8. //
  9.  
  10. #ifndef __BCPLUSPLUS__
  11. #pragma inline
  12. #endif
  13.  
  14. #include "fli.h"
  15.  
  16. #ifdef __BCPLUSPLUS__
  17. #pragma hdrstop
  18. #endif
  19.  
  20. #define I asm
  21.  
  22. //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  23. //
  24. // IsBlackWhite()
  25. //
  26. // Function to determine if monitor is monochrome, color, or color in the
  27. // Black and White mode
  28. //
  29. //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  30.  
  31. int BlazeClass::IsBlackWhite()
  32. {
  33.   if (IsMonochrome())
  34.     return 1;
  35.  
  36.   I mov ah,0fh
  37.   I int 10h
  38.  
  39.   if (_AL==2)
  40.     return 1;
  41.  
  42.   return 0;
  43. }
  44.